package com.fun.demo.annotation;

import java.lang.annotation.Annotation;

public class Run {

    public static void main(String[] args) {
        Animal animal = new UserX();
        Animal animal1 = new DogX();

        Class z = animal.getClass();
        boolean b = z.isAnnotation();
        Annotation anno = z.getAnnotation(User.class);
        b = z.isAnnotationPresent(User.class);

        Annotation[] annotations1 = animal1.getClass().getAnnotations();
        System.out.println("ok");

        /*
        * 1，初始化配置
        * 2，加载扫描路径下所有class
        * 3，判断class注释标记， @Configtation @Service @Conrotuller...
        * 4, 根据注释初始化bean，并缓存。 系统默认Bean， 自定义Bean
        * 5，完成初始化
         * */


        /*
         * 1, servlet.service
         * 2, requeatPath mapping hander
         * 3, hander invoke  method  paramter
         * 4, modleandview
         * 5, response
         * */




    }
}
